package pe.com.bbva.carga.bo.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import pe.com.bbva.carga.bo.CargaManualBO;
import pe.com.bbva.carga.domain.CargaManual;
import pe.com.bbva.carga.domain.Monitoreo;
import pe.com.stefanini.core.bo.GenericBOImpl;
import pe.com.stefanini.core.bo.Grid;
import pe.com.stefanini.core.exceptions.BOException;
import pe.com.stefanini.core.exceptions.DAOException;

@SuppressWarnings("rawtypes")
@Service("cargaManualBO")
public class CargaManualBOImpl extends GenericBOImpl implements CargaManualBO{
	
	@SuppressWarnings("unchecked")
	public Grid<CargaManual> findToGridCarga(List<CargaManual> cargaManualList, String order, int page, int rows)
	throws BOException, DAOException {
	    return super.findToGridList(cargaManualList, "", " order by "+order,page,rows);
	}
	
	@SuppressWarnings("unchecked")
	public Grid<Monitoreo> findToGridMonitoreo(List<Monitoreo> monitoreoList, String order, int page, int rows)
	throws BOException, DAOException {
	    return super.findToGridList(monitoreoList, "", " order by "+order,page,rows);
	}
}